#include <iostream>
#include <opencv2/opencv.hpp>
#include <onnxruntime_cxx_api.h>

// 返回结果的结构体
struct Detection {
    cv::Rect box;
    float conf;
    size_t clas_id;
};

std::vector<Detection> Demo(cv::Mat &draw_img);

// =======================导出接口============================
struct Detection_ {
    float conf;
    size_t clas_id;  // 类别索引
    int *box_array;
};

extern "C"
{
__declspec(dllexport) Detection_ *OutResult(YoloDetect *ud, int& height, int& width, const uchar *img_data, size_t &result_size);
__declspec(dllexport) void FreeResult(Detection_ *result, size_t &result_size);
}
